package com.rocky.study.myenum;

// Singleton with public final field
public class EnumField {

    public static final EnumField INSTANCE = new EnumField();

    private EnumField() {}

    public void leaveTheBuilding() {
        System.out.println("who a baby,I'm outta here!");
    }

    public static void main(String[] args) {
        EnumField enumField = EnumField.INSTANCE;
        enumField.leaveTheBuilding();
    }
}
